//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.dao.wills;

import com.aidong.dao.wills.BaseDao;
import com.aidong.model.wills.PrintTemplate;
import java.util.Date;
import org.springframework.stereotype.Repository;

@Repository
public class PrintTemplateDao extends BaseDao<PrintTemplate, Integer> {
    public PrintTemplateDao() {
    }

    public String getFileNameByDate(int type, Date date, String shopCode) {
        String sql = "select top 1 fileName from PrintTemplate\nwhere type=:p1 and ActiveTime<=:p2 and InactiveTime>=:p3 and status=1 order by priority";
        return (String)this.getBySql(String.class, sql, new Object[]{Integer.valueOf(type), date, date});
    }
}
